local mingjing_active = fk.CreateSkill{
  name = "#lingling__mingjing_active",
}

Fk:loadTranslationTable{
  ["#lingling__mingjing_active"] = "明镜",
}

mingjing_active:addEffect("active", {
  card_num = 0,
  target_num = 2,
  card_filter = Util.FalseFunc,
  target_filter = function (self, player, to_select, selected)
    if #selected < 2 then
      if #selected == 0 then
        if to_select == player then
          return true
        else
          return to_select:getHandcardNum() ~= player:getHandcardNum()
        end
      else
        if selected[1] ~= player then
          return to_select == player
        else
          return to_select:getHandcardNum() ~= player:getHandcardNum()
        end
      end
    end
  end,
})

return mingjing_active
